﻿namespace Ensemble_Windows.Core
{
    /// <summary>
    ///     基本配置
    /// </summary>
    public class Configuration
    {
        /// <summary>
        ///     窗体配置
        /// </summary>
        public Configuration()
            : this("")
        {
        }

        /// <summary>
        ///     窗体配置
        /// </summary>
        /// <param name="title">标题</param>
        public Configuration(string title)
            : this(title, 1000, 600)
        {
        }

        /// <summary>
        ///     窗体配置
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="width">宽度</param>
        /// <param name="height">高度</param>
        public Configuration(string title, int width, int height)
        {
            Title = title;
            Width = width;
            Height = height;
            WaitVerticalBlanking = false;
        }

        /// <summary>
        ///     标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        ///     宽度
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        ///     高度
        /// </summary>
        public int Height { get; set; }

        /// <summary>
        ///     等待垂直消隐
        /// </summary>
        public bool WaitVerticalBlanking { get; set; }
    }
}